package com.spring.springboot.config;

import com.spring.springboot.dto.Student;
import com.spring.springboot.dto.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 项目名称: java_algorithm
 * @ClassName TestBean
 * @Description
 * @Author huipanxing huipanxing@chinasofti.com   @Date 2022/5/13 14:21
 */
@Configuration
public class TestBean {

    @Bean
    public User user() {
        return new User();
    }

    @Autowired
    private Student student;
}
